<?php
include_once "RequestInit.php";
include_once "VerifyToken.php";
$date = date("Y-m-d");
if(isset($_REQUEST['date']))
{
	$date = $_REQUEST['date'];
}
// 
$result = Entry::fetchEntries($_SESSION['userId'], $date, $dbConn);
echo json_encode($result);
include_once "RequestCleanup.php";

?>